home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 November
/
CHIP Kasım 1998.iso
/
DRIVERS
/
CD-Rom
/
220x.exe
/
AF1.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-01-12
|
3KB
|
150 lines
ECHO OFF
cls
prompt $p$g
if "%1" == "?" goto usage
if "%1" == "at" goto inst
if "%1" == "AT" goto inst
if "%1" == "xt" goto inst
if "%1" == "XT" goto inst
if "%1" == "2at" goto inst
if "%1" == "2AT" goto inst
if "%1" == "2xt" goto inst
if "%1" == "2XT" goto inst
if "%1" == "3at" goto inst
if "%1" == "3AT" goto inst
if "%1" == "3xt" goto inst
if "%1" == "3XT" goto inst
if "%1" == "4at" goto inst
if "%1" == "4AT" goto inst
if "%1" == "4xt" goto inst
if "%1" == "4XT" goto inst
sel_seq
:inst
cls
ECHO\
ECHO NOTICE: If the DOS version is 5.0, MS-DOS Extensions is ignored
ECHO as Incorrect DOS version.
IF EXIST AUTOEXEC.BAT del autoexec.bat
IF EXIST CONFIG.SYS del config.sys
ECHO Two files will be copied from the boot disk to Library disk if exist.
ECHO Then the files will be modified.
ECHO Continue in response to each prompt.
ECHO\
ECHO NOTE: Even if your computer has only one floppy disk drive,
ECHO the following message will be displayed at each prompt.
ECHO\
ECHO Insert diskette for drive A: (or B:) and strike
ECHO any key when ready
ECHO\
ECHO Make a note of the following:
ECHO\
ECHO If drive letter A: appears, insert Library disk.
ECHO\
ECHO If drive letter B: appears, insert boot disk.
ECHO\
PAUSE
ECHO ON
COPY B:\AUTOEXEC.BAT A:
COPY B:\CONFIG.SYS A:
ECHO OFF
ECHO\
ECHO AUTOEXEC.BAT and CONFIG.SYS files will be modified. Wait for a while.
shell3 del_DVR
shell3 del_MSCD
ECHO\
ECHO ON
COPY CONFIG.NEW+CONFIG.%1 CONFIG.NEW
ECHO OFF
shell3 app A:\%2
shell3 m_sys A:\%2
:take_a
ECHO OFF
CLS
ECHO Some files will be copied from Library disk to the target disk.
ECHO Continue in response to each prompt, then you can install
ECHO Sony MS-DOS CD-ROM Extensions on the target disk.
ECHO\
ECHO NOTE: Even if your computer has only one floppy disk drive,
ECHO the following message will be displayed at each prompt.
ECHO\
ECHO Insert diskette for drive A: (or B:) and strike
ECHO any key when ready
ECHO\
ECHO Make a note of the following:
ECHO\
ECHO If drive letter A: appears, insert Library disk.
ECHO\
ECHO If drive letter B: appears, insert a target disk.
ECHO\
PAUSE
if "%2" == "" goto make_a
ECHO ON
MD B:\%2
ECHO OFF
:make_a
ECHO ON
COPY AUTOEXEC.BAT+AUTOEXEC.ADD B:\AUTOEXEC.BAT
COPY CONFIG.SYS B:\
COPY SONY_CDU.SYS B:\%2
COPY MSCDEX.EXE B:\%2
ECHO OFF
IF EXIST AUTOEXEC.BAT DEL AUTOEXEC.BAT
IF EXIST CONFIG.SYS DEL CONFIG.SYS
IF EXIST *.NEW DEL *.NEW
LAST_MSG A %2
goto exit
:usage
echo\
echo\
echo USAGE...
echo\
echo AF1 XX [Option] and Enter
echo\
echo XX: Your computer type, AT or XT
echo Option: Sub Directory
echo\
echo\
echo AF1 ? and Enter ; Display this message.
echo\
echo\
:exit